package com.mac.pojo;

import java.sql.Timestamp;

/**
 * 创建新闻与活动表 NewsAndEvents 实体类
 * 包含实验室的最新新闻和活动信息
 */
public class NewsAndEvents {

    // 活动唯一标识，自增主键
    private Integer eventId;

    // 活动标题，不能为空
    private String title;

    // 活动描述
    private String description;

    // 开始时间
    private Timestamp startTime;

    // 结束时间
    private Timestamp endTime;

    // 地点
    private String location;

    public NewsAndEvents() {
    }

    public NewsAndEvents(Integer eventId, String title, String description, Timestamp startTime, Timestamp endTime, String location) {
        this.eventId = eventId;
        this.title = title;
        this.description = description;
        this.startTime = startTime;
        this.endTime = endTime;
        this.location = location;
    }

    public Integer getEventId() {
        return eventId;
    }

    public void setEventId(Integer eventId) {
        this.eventId = eventId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Timestamp getStartTime() {
        return startTime;
    }

    public void setStartTime(Timestamp startTime) {
        this.startTime = startTime;
    }

    public Timestamp getEndTime() {
        return endTime;
    }

    public void setEndTime(Timestamp endTime) {
        this.endTime = endTime;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Override
    public String toString() {
        return "NewsAndEvents{" +
                "eventId=" + eventId +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", location='" + location + '\'' +
                '}';
    }
}
